<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>上善平台管理</title>
    <link href="resources/plugins/bootstrap/css/bootstrap.css"/>
    <link href="resources/plugins/bootstrap/css/bootstrap.min.css"/>
    <link href="resources/plugins/bootstrap/css/bootstrap-theme.css"/>
    <link rel="stylesheet" type="text/css" href="<c:url value="/resources/css/main1.css"/>"/>
    <link rel="stylesheet" type="text/css" href="<c:url value="/resources/css/bootstrap-responsive.min.css"/>">
    <link rel="stylesheet" type="text/css" href="<c:url value="/resources/css/bootstrap.min.css"/>">
    <link rel="stylesheet" type="text/css" href="<c:url value="/resources/css/bootstrap.css"/>"/>
    <link rel="stylesheet" type="text/css" href="<c:url value="/resources/css/global.css"/>">
    <link rel="stylesheet" type="text/css" href="<c:url value="/resources/css/bootstrap.min.css"/>">
    <script src="<c:url value="/resources/js/jquery.js"/>" type="text/javascript"></script>
    <script src="<c:url value="/resources/js/bootstrap.min.js"/>"></script>
</head>
<body onResize="Resize()" onLoad="Resize()">
<jsp:include page="/WEB-INF/views/platform/navigator.jsp"></jsp:include>
<div class="container well teacher">
    <div class="row">
        <h1 class="teacher col-lg-12">编辑天气数据</h1>
    </div>
    <hr/>
    <form class="form-horizontal" id="form-newAssignment" role="form" method="post" name="weatherData">
        <input type="hidden" name="weather_id" value="${weatherData.weather_id}">

        <div class="form-group form-group-lg">
            <label class="control-label col-lg-2 col-md-3 col-sm-3">
                <small>(必填)</small>
                天气类型</label>

            <div class="col-lg-3 col-md-3 col-sm-4">
                <select class="form-control" name="type">
                    <c:choose>
                        <c:when test="${weatherData.type eq 0}">
                            <option value="0" selected="selected">晴朗</option>
                        </c:when>
                        <c:otherwise>
                            <option value="0">晴朗</option>
                        </c:otherwise>
                    </c:choose>
                    <c:choose>
                        <c:when test="${weatherData.type eq 1}">
                            <option value="1" selected="selected">多云</option>
                        </c:when>
                        <c:otherwise>
                            <option value="1">多云</option>
                        </c:otherwise>
                    </c:choose>
                    <c:choose>
                        <c:when test="${weatherData.type eq 2 }">
                            <option value="2" selected="selected">小雨</option>
                        </c:when>
                        <c:otherwise>
                            <option value="2">小雨</option>
                        </c:otherwise>
                    </c:choose>
                    <c:choose>
                        <c:when test="${weatherData.type eq 3 }">
                            <option value="3" selected="selected">大雨</option>
                        </c:when>
                        <c:otherwise>
                            <option value="3">大雨</option>
                        </c:otherwise>
                    </c:choose>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-lg-2 col-md-3">
                <small>(必填)</small>
                天气描述</label>

            <div class="col-lg-9 col-md-8">
                <textarea class="form-control" name="description" rows="7" placeholder="请输入天气描述"
                          required>${weatherData.description}</textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-lg-2 col-md-3">
                <small>(必填)</small>
                天气特点</label>

            <div class="col-lg-9 col-md-8">
                <input class="form-control" name="feature" placeholder="请输入天气特点" value="${weatherData.feature}"
                       required/>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-lg-2 col-md-3">
                <small>(必填)</small>
                影响属性及影响程度</label>

            <div class="col-lg-9 col-md-8">
                <input class="form-control" name="effect" placeholder="请输入影响属性及影响程度" value="${weatherData.effect}"
                       required/>
            </div>
        </div>
        <div>
            <div class="col-lg-6 col-md-5">
                <button type="submit" class="btn btn-lg btn-primary btn-submit">
                    <span class="glyphicon glyphicon-export"></span>
                    确认
                </button>
            </div>
        </div>
        <!--6th .form-group form-group-lg ends here-->
    </form>
</div>

<!--The footer needs to be put here-->

<script src="${ctx}/resources/js/jquery 1.1.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="${ctx}/resources/js/bootstrap.js"></script>
<script src="${ctx}/resources/js/gobal.js"></script>
</body>
</html>
